package edu.sctu.practice.class02.renzhaoxu.test06;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Person {

    private String name;

    public Person(String n) {
        this.setName(n);
    }

    public void setName(String n) {
        name = n;
    }

    public String getName() {
        return name;
    }

    public void getInfo() {
        System.out.println("姓名" + name);
    }


    public static void main(String[] args) {

        Person person = new Person("TOM");
        
        person.getInfo();
        person.getName();


    }
}


